package com.team.game.Game.Wizards.FireWizard;

import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.view.MotionEvent;

import com.team.game.framework.Abstract.GesturesInfo;
import com.team.game.framework.Abstract.Spell;
import com.team.game.framework.Game;
import com.team.game.framework.impl.MainActivity;
import com.team.game.framework.impl.Scale_X_Y;

import java.io.IOException;
import java.io.InputStream;

import static com.team.game.framework.impl.Scale_X_Y.Scale_X;
import static com.team.game.framework.impl.Scale_X_Y.Scale_Y;
import static com.team.game.framework.impl.Scale_X_Y.relation;

public class fifth_Spell extends Spell {


    public fifth_Spell () {
        super ();

        InputStream inputStream;
        try {
            inputStream = MainActivity.manager.open ("Picture/Gestures/FireMage/hero_1/spell_5.png");
            icon_spell = BitmapFactory.decodeStream (inputStream);
        } catch (IOException e) {
            e.printStackTrace ();
        }
        cost = new int[]{15, 25, 35, 45};
    }

    public fifth_Spell(Game game) {
        super(game);

        TimeRecharch = 7f;
        ProgressBarRect.set(19 * Scale_X_Y.scale, 287 * Scale_X_Y.scale, 69 * Scale_X_Y.scale, 337 * Scale_X_Y.scale);
        RectDstForBlackProgress.set(21 * Scale_X_Y.scale, 289 * Scale_X_Y.scale, 67 * Scale_X_Y.scale, 335 * Scale_X_Y.scale);
        TopOfRectProgressDst = RectDstForBlackProgress.top;

    }

    @Override
    public boolean updateSpell() {
        return false;
    }

    @Override
    public boolean activeSpell(GesturesInfo gesturesInfo1) {
        return false;
    }

    @Override
    public boolean setMotionEventSpell(MotionEvent motionEvent) {
        return false;
    }

    @Override
    public void drawSpell(Canvas canvas) {

    }

    @Override
    public void restart() {

    }

    @Override
    public void dispose() {

    }

    @Override
    public void setImages () {
        InputStream inputStream;
        try {

            inputStream = MainActivity.manager.open ("Picture/Gestures/FireMage/Last/5-s.png");
            ProgressBarNormal = (BitmapFactory.decodeStream (inputStream));

            inputStream = MainActivity.manager.open ("Picture/Gestures/FireMage/Last/5-s_Active.png");
            ProgressBarActive = (BitmapFactory.decodeStream (inputStream));

            inputStream = MainActivity.manager.open ("Picture/Gestures/FireMage/Last/5-s_RActive.png");
            ProgressBarRActive = (BitmapFactory.decodeStream (inputStream));

        } catch (IOException e) {
            e.printStackTrace ();
        }

        SPELL_NAME = "fifth_spell";
    }

    @Override
    public void drowProfileExample (Canvas canvas, int A) {
        paintText.setTextSize (30 * relation);
        paintText.setColor (Color.RED);
        canvas.drawText ("Working on it\n\n\n\nDamage:?/?/?/?", 660 * Scale_X, 900 * Scale_Y, paintText);
    }

    @Override
    public void updateProfileExample() {

    }

    @Override
    public void setStartConfiguration() {

    }
}
